package com.chen.servicepassenger.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author chenLiuPing
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PassengerUser {
    private Long id;

    private String passengerPhone;

    private String passengerName;

    private byte passengerGender;

    private byte state;

    private String profilePhoto;

    private LocalDateTime gmtCreate;

    private LocalDateTime gmtModified;

    public static PassengerUser generate(String passengerPhone) {
        return new PassengerUser(null, passengerPhone, "张三", (byte) 1, (byte) 0,"", LocalDateTime.now(), LocalDateTime.now());
    }


}
